﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    var news = ViewBag.News as List<BuyWithoutLoseMoney.Core.Models.News>;
}
@model IEnumerable<NewsType>;
<!--=== list feature ===-->
<el-main style="padding-left:15%;padding-right:15%;">
    <el-tabs v-model="activeName">
        @foreach (var item in Model)
        {
            <el-tab-pane>
                <span slot="label">
                    @item.Name
                </span>
                <section class="feature list-feature"  style="padding:10px">
                    <div class="container">
                        <div class="row">
                            @foreach (var i in news.Where(x => x.NewsTypeId == @item.Id))
                            {
                                <a href="/news/NewsDetail/@i.Id" style="">
                                    <div class="col-lg-6 col-sm-12">
                                        <div class="feature-wrap">
                                            <div class="media">
                                                <div class="align-self-center mr-4">
                                                    <div class="icon-wrap"><i class="ion ion-ios-navigate"></i></div>
                                                </div>
                                                <div class="media-body">
                                                    <a href="/news/NewsDetail/@i.Id">@i.Title</a>
                                                    <p>@i.CreateTime</p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </a>
                            }

                        </div>
                    </div>
                </section>

            </el-tab-pane>
        }
    </el-tabs>

</el-main>
